﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp2
{
    interface ITree
    {
        public string Name { get; set; }
        public string NickName { get; set; }
        public string Purpose { get; set; }
        public void Print(string name);
    }
    class GinkgoTree : ITree
    {
        public string Name { get; set; }
        public string NickName { get; set; }
        public string Purpose { get; set; }

        void ITree.Print(string name)
        {
            this.Name = name;
            Console.WriteLine("树名:" + Name);
        }
    }
}
